<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>当天人员动态表</title>
<link rel="stylesheet" type="text/css" href="../../themes/general.css"  />
<!-- <link rel="stylesheet" type="text/css" href="../../themes/demo.css" 	 		/> -->
<link rel="stylesheet" type="text/css" href="../../themes/icon.css" 			/>
<link rel="stylesheet" type="text/css" href="../../themes/jquery-ui.css" 		/>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css" 	/>
<script type="text/javascript" src="../../scripts/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../../scripts/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../scripts/src/jquery.parser.js"></script>
<script type="text/javascript" src="../../scripts/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../scripts/sessionExpriation.js"></script>
<script type="text/javascript">
	
	
	$(function() {

		$('#AddqualityStationDesc').combobox({
			url : '../../people/getPostStatus.ajax',
			valueField : 'postStatusDes',
			textField : 'postStatusDes',
			panelHeight : 'auto',
			editable : false,
			value : "待岗",
			

		/* onLoadSuccess:function(data){
		alert(data[1].poststatusdes);
		} */
		});

		$('#AddqualityEvectionDesc').combobox({
			url : '../../people/getHolidayTravelStatus.ajax',
			valueField : 'evectionStatusDes',
			textField : 'evectionStatusDes',
			panelHeight : 'auto',
			editable : false,
		/* onLoadSuccess : function(data) {
			alert(data[1].evectionStatusDes);
		} */
		});

		$('#EditqualityStationDesc').combobox({
			url : '../../people/getPostStatus.ajax',
			valueField : 'postStatusDes',
			textField : 'postStatusDes',
			panelHeight : 'auto',
			editable : false,
		/* onLoadSuccess:function(data){
		alert(data[1].poststatusdes);
		} */
		});

		$('#EditqualityEvectionDesc').combobox({
			url : '../../people/getHolidayTravelStatus.ajax',
			valueField : 'evectionStatusDes',
			textField : 'evectionStatusDes',
			panelHeight : 'auto',
			editable : false,
		/* onLoadSuccess : function(data) {
			alert(data[1].evectionStatusDes);
		} */
		});

		$('#qualityStationDesc').combobox({
			url : '../../people/getPostStatus.ajax',
			valueField : 'postStatusDes',
			textField : 'postStatusDes',
			panelHeight : 'auto',
			editable : false,
		/* onLoadSuccess:function(data){
		alert(data[1].poststatusdes);
		} */
		});
		$('#qualityEvectionDesc').combobox({
			url : '../../people/getHolidayTravelStatus.ajax',
			valueField : 'evectionStatusDes',
			textField : 'evectionStatusDes',
			panelHeight : 'auto',
			editable : false,
		/* onLoadSuccess : function(data) {
			alert(data[1].evectionStatusDes);
		} */
		});
		$('#query_result').datagrid({
			/* collapsible:true, */
			url : '../../people/getAllPeople.ajax',
			pagination : true,
			onDblClickRow : function(rowIndex, rowData) {
				view(rowData["peoId"]);

			}
		});

		$('#qualityBeginTime').datebox('setValue', '1900-01-01');

		$('#qualityEndTime').datebox('setValue', '3000-01-01');
		var page = $('#query_result').datagrid('getPager');
		$('#btn_query').bind('click', function() {
			//点查询钮查询时总是以第一页开始 
			$(page).pagination('select', 1);
		});

		$('#btn_reset').bind('click', function() {
			$('#query_form').form('clear');
			$('#qualityBeginTime').datebox('setValue', '1900-01-01');
			$('#qualityEndTime').datebox('setValue', '3000-01-01');
			$('#query_result').datagrid('loadData', {
				total : 0,
				rows : []
			});
		});

		$(page).pagination({
			onBeforeRefresh : function() {//刷新按钮点击之前触发，返回 false 就取消刷新动作。
			},
			onRefresh : function(pageNumber, pageSize) {//刷新之后触发。

				do_submit(pageNumber, pageSize)
			},
			onChangePageSize : function() {//当用户改变页面尺寸时触发。
			},
			onSelectPage : function(pageNumber, pageSize) {//当用户选择新的页面时触发。回调函数包含两个参数：pageNumber：新的页码  pageSize：新的页面尺寸

				do_submit(pageNumber, pageSize);
			}
		});
	});
	function do_submit(pageNumber, pageSize) {
		$('#query_form').form('submit', {
			/* url : '../../people/queryPeople.ajax', */

			onSubmit : function(param) {
				/* alert(param.qualityBeginTime); */
				/* alert(param.qualityEndTime); */
				param.paging = true;
				param.offset = (pageNumber - 1) * pageSize;
				param.limit = pageSize;
				return $(this).form('validate');
			},

			success : function(data) {
				var obj = $.parseJSON(data);
				$('#query_result').datagrid('loadData', obj)
			}
		});
	}

	/* function RemovePeopleWindow() {
		$('#RemoveWindow').window('open').window('refresh');
	} */
	//打开新页面查看		
	function view(row) {
		$('#ViewWindow').window('open').window('refresh');
		if(row.ppStatus=="O"){row.ppStatus="在项目里面"}else if(row.ppStatus=="C"){row.ppStatus="离开项目"};
		$('#query_form_View').form('load', row);
		/* $('#qualityName').attr('disabled',true); */
		/* $('#qualityName').validatebox('disabled',true); */
		/*   $('input').attr("readonly", "readonly");   */
		/*  $('#qualityEndTime').validatebox("readonly", "readonly"); */

		/* parent.addTabWithIcon("项目详述", "./people/view.html?msgId="+peoId, "icon-list"); */
	}
	//打开新页面修改
	function edit(row) {
		$('#EditWindow').window('open').window('refresh');
		if(row.ppStatus=="O"){row.ppStatus="在项目里面"}else if(row.ppStatus=="C"){row.ppStatus="离开项目"};
		$('#query_form_Edit').form('load', row);

	}

	function do_view() {
		var row = $('#query_result').datagrid('getSelected');//返回第一个选中的行
		if (row == null) {
			$.messager.alert('Info', '请选择行', 'info');
			return;
		}
		view(row);
	}

	function do_edit() {
		var row = $('#query_result').datagrid('getSelected');
		if (row == null) {
			$.messager.alert('Info', '请选择行', 'info');
			return;
		}
		edit(row);
	}

	function do_remove() {
		var row = $('#query_result').datagrid('getSelected');
		if (row == null) {
			$.messager.alert('Info', '请选择行', 'info');
			return;
		}
		RemovePeopleWindow(row);
	}

	/* 验证规则 */
	$.extend($.fn.validatebox.defaults.rules, {
		mobile : {
			validator : function(value, param) {
				return /^(?:13\d|15\d|18\d)-?\d{5}(\d{3}|\*{3})$/.test(value);
			},
			message : '手机号码不正确'
		},
	});
	function formatStatus(val, row) {
		if (val == 1) {
			return '<span >在岗</span>';
		} else if (val == 2) {
			return '<span >待岗</span>';
		} else if (val == 3) {
			return '<span >备用</span>';
		}
	}
	function formatEvectionStatus(val, row) {
		if (val == 1) {
			return '<span >出差</span>';
		} else if (val == 2) {
			return '<span >请假</span>';
		}
	}
	
	function formatPrejectInStatus(val, row) {
		if (val == "O") {
			return '<span style="color:green">在项目中</span>';
		} else if (val == "C") {
			return '<span style="color:red">离开项目</span>';
		}
	}
	
	

	//打开新增人员信息的窗口
	function AddPeopleWindow() {
		$('#AddWindow').window('open').window('refresh');
	}
	 function AddPeopleData() {
		$('#query_form_Add').form('submit', {
			/* url : '../../people/AddPeopleData.ajax',
 */
			onSubmit : function(param) {
				if ($(this).form('validate')) {
					return true;//验证是否为空
				} else {
					return false;
				}
			},

			success : function(data) {
				var obj = $.parseJSON(data);//将json字符串转换为object对象
				if (obj.success) {
					$.messager.alert('提示', obj.message, 'info', function() {
					$('#query_result').datagrid({url : '../../people/getAllPeople.ajax'});
					AddWindowClose() 
						/* location.reload();//强迫浏览器刷新当前页面 */
					});
				} else {
					$.messager.alert('错误', obj.message, 'error');
				}
			}
		});
	} 
	
	
	function EditPeopleData() {
		$('#query_form_Edit').form('submit', {
			
			/* url : '../../people/EditPeopleData.ajax', */ 

			onSubmit : function(param) {
				if ($(this).form('validate')) {
					return true;//验证是否为空
				} else {
					return false;
				}
			},

			success : function(data) {
				var obj = $.parseJSON(data);//将json字符串转换为object对象
				if (obj.success) {
					$.messager.alert('提示', obj.message, 'info', function() {
					$('#query_result').datagrid({url : '../../people/getAllPeople.ajax'});
					EditWindowClose()
						/* location.reload();//强迫浏览器刷新当前页面 */
					});
				} else {
					$.messager.alert('错误', obj.message, 'error');
				}
			}
		});
	}
	//关闭查看人员信息窗口
	function ViewWindowClose() {
		/* $('input').removeAttr("readonly"); */
		$('#ViewWindow').window('close');
	}
	//关闭新增人员信息窗口
	function AddWindowClose() {
		$('#AddWindow').window('close');
	}
	//关闭修改人员信息窗口
	function EditWindowClose() {
		$('#EditWindow').window('close');
	}
</script>
</head>
<body>
<div style="margin: 5px 0"></div>
<div style="margin: 0 5px">
<form id="query_form" method="post">
	<table class="table_view" style="font-size: 12px; background: #F1F1F1;">
	<tr>
		
		<td class="td_view_name_people">姓名</td>
		<td class="td_view_value_people" ><input class="easyui-validatebox input_140" type="text" id="qualityName" name="qualityName" /></td>
		<td class="td_view_name_people">岗位状态</td>							
		<td class="td_view_value_people"><input class="easyui-combobox" id="qualityStationDesc" name="qualityStationDesc" /></td>
		<td class="td_view_name_people">员工编号</td>
		<td class="td_view_value_people"><input class="easyui-validatebox input_140" id="peoJobNum" name="peoJobNum" /></td>
		
	</tr>
	<tr>
		
		<td class="td_view_name_people">休假出差</td>							
		<td class="td_view_value_people"><input class="easyui-combobox" id="qualityEvectionDesc" name="qualityEvectionDesc" /></td>
		<td class="td_view_name_people">出差位置</td>
		<td class="td_view_value_people"><input class="easyui-validatebox input_140 " type="text" id="qualityEvectionLocation" name="qualityEvectionLocation" /></td> 
		<td class="td_view_name_people">联系电话</td>
		<td class="td_view_value_people"><input class="easyui-validatebox input_140 " id="qualityContel" name="qualityContel" /></td>
	</tr>
    <tr> 
	 	<td class="td_view_name_people">所在项目</td>							
		<td class="td_view_value_people"><input class="easyui-validatebox input_140" id="qualityProjectName" name="qualityProjectName" /></td>
		<td class="td_view_name_people">项目类型</td>
		<td class="td_view_value_people"><input class="easyui-validatebox input_140" id="qualityProjectType" name="qualityProjectType" /></td>
		<td class="td_view_name_people">项目职务</td>
		<td class="td_view_value_people"><input class="easyui-validatebox input_140" id="qualityProjectDuty" name="qualityProjectDuty" /></td>
	</tr>
	<tr> 
		<td class="td_view_name_people">所在厂家</td>
		<td class="td_view_value_people"><input class="easyui-validatebox input_140" id="qualityFactory" name="qualityFactory" /></td>
		<td class="td_view_name_people">开始日期</td>							
		<td class="td_view_value_people"> <input type="text" name="qualityBeginTime" id="qualityBeginTime" class= "easyui-datebox"/></td>
		<td class="td_view_name_people">结束日期</td>
		<td class="td_view_value_people"> <input type="text" name="qualityEndTime" id="qualityEndTime" class= "easyui-datebox"/></td>
	</tr> 

	<tr>
		<td colspan="6" align="center" class="td_view_name">
			<div align="center">
				<a id="btn_query" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"	>查询</a>
				<a id="btn_reset" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-reset" 	>重置</a>
			</div>
		</td>
	</tr>
	</table>
</form>
</div>

<div style="margin: 10px 0;"></div>
	<div style="margin: 0 5px">
		<table title="查询结果" id="query_result" 
			data-options="singleSelect:true,pagination:true,rownumbers:true,pageNumber:1,pageSize:10,pageList:[1,5,10]"
			toolbar="#tb" >
			<thead>
				<tr>
					<th field="ck" checkbox="true"></th>
					<th data-options="field:'peoId',width:80,hidden:true,align:'center',sortable:'true'">人员ID</th>
					<th data-options="field:'peoJobNum',width:80,hidden:false,align:'center',sortable:'true'">员工编号</th>
					<th data-options="field:'peoName',width:80,hidden:false,align:'center',sortable:'true'">姓名</th>
					<th data-options="field:'userSex',width:100,align:'center',sortable:'true'">性别</th>
					<th data-options="field:'userRoleId',width:100,hidden:true,align:'center',sortable:'true'">用户角色表ID</th>	
					<th data-options="field:'roleId',width:80,hidden:true,align:'center',sortable:'true'">角色ID</th>
					<th data-options="field:'roleDesc',width:80,align:'center',sortable:'true'">角色描述</th>
					<th data-options="field:'roleStatus',width:80,hidden:true,align:'center',sortable:'true'">角色是否关闭</th>
					<th data-options="field:'peoStationDesc',width:80,align:'center',sortable:'true',formatter:formatPeopleWorkStatus">岗位状态</th>
					<!-- <th data-options="field:'qualityEvectionLocation',width:120,align:'right'">岗位</th> -->
					<th data-options="field:'peoEvectionDesc',width:80,align:'center',sortable:'true'">休假出差</th>
					<th data-options="field:'peoEvectionLocation',width:80,align:'center',sortable:'true'">出差位置</th>
					<th data-options="field:'proId',width:100,hidden:true,align:'center',sortable:'true'">委托信息ID</th>
					<th data-options="field:'projectName',width:100,align:'center',sortable:'true'">所在项目</th>
					<th data-options="field:'proProducttype',width:140,align:'center',sortable:'true'">项目类型</th>
					<th data-options="field:'ppProRoleDesc',width:100,align:'center',sortable:'true'">项目职务</th>
					<th data-options="field:'begintime',width:110,align:'center',sortable:'true'">项目开始日期</th>
					<th data-options="field:'proEndtime',width:110,align:'center',sortable:'true'">项目结束日期</th>
					<th data-options="field:'proFactory',width:120,align:'center',sortable:'true'">所在厂家</th>
					<th data-options="field:'projectPeopleId',width:100,hidden:true,align:'center',sortable:'true'">人员项目表ID</th>
					<th data-options="field:'ppInProTime',width:110,align:'center',sortable:'true'">进入项目日期</th>
					<th data-options="field:'ppOutProTime',width:110,align:'center',sortable:'true'">离开项目日期</th>
					<th data-options="field:'ppStatus',width:100,align:'center',sortable:'true',formatter:formatPrejectInStatus">是否还在项目里</th>
					<th data-options="field:'userId',width:100,hidden:true,align:'center',sortable:'true'">用户名表ID</th>
					<th data-options="field:'peoContel',width:100,align:'center',sortable:'true'">联系电话</th>
					<th data-options="field:'email',width:150,align:'center',sortable:'true'">email</th>
					<th data-options="field:'userIdentityCard',width:160,align:'center',sortable:'true'">身份证号码</th>
					<th data-options="field:'peoNote',width:150,hidden:false,align:'center',sortable:'true'">备注</th>
				</tr>
			</thead>
		</table>

		<div id="tb">
			<div id="divBtnAdd" style="float: left">
				<a href="#" class="easyui-linkbutton" iconCls="icon-add"
					plain="true" onclick="javascript:AddPeopleWindow()">添加人员信息</a>
			</div>
			<div id="divBtnView" style="float:left">
				<a href="#" class="easyui-linkbutton" iconCls="icon-view"
					plain="true" onclick="javascript:do_view()">查看人员信息</a>
			</div>
			<div id="divBtnEdit" style="float: left">
				<a href="#" class="easyui-linkbutton" iconCls="icon-edit"
					plain="true" onclick="javascript:do_edit()">修改人员信息</a>
			</div>
			<div id="divBtnEdit" style="float: left">
				<a href="#" class="easyui-linkbutton" iconCls="icon-remove"
					plain="true" onclick="javascript:do_remove()">人员离职按钮 </a>
			</div>
			
		</div>
	</div>
	
	<!-- 查看人员信息窗口 -->
	<div id="ViewWindow" class="easyui-window" title="查看人员信息"
		data-options="collapsible:false,closable:false,minimizable:false,maximizable:false,modal:true,closed:true,iconCls:'icon-view'"
		style="width:700px;height:460px;padding:10px;">
		<div class="easyui-layout" data-options="fit:true">
<div data-options="region:'center'" style="padding:10px;">
				<form id="query_form_View" method="post">
					<table class="table_view"
						style="font-size: 12px; background: #F1F1F1;">

						<tr>
							
							<td class="td_view_name">员工编号</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddpeoJobNum" name="peoJobNum"  readonly = "true"/></td>
							<td class="td_view_name">姓名</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddpeoName" name="peoName"  readonly = "true"/></td>
							
						</tr>
						
						<tr>
							<td class="td_view_name">性别</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AdduserSex"
								name="userSex" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>	
							<td class="td_view_name">角色</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddroleDesc" name="roleDesc"  readonly = "true"/></td>		
													
						</tr>
						<tr>
							<td class="td_view_name">岗位状态</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AddpeoStationDesc"
								name="peoStationDesc" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>
							<td class="td_view_name">休假出差</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AddpeoEvectionDesc"
								name="peoEvectionDesc" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>								
						</tr>
						
						<tr>
							<td class="td_view_name">出差位置</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text"
								id="AddpeoEvectionLocation" name="peoEvectionLocation"  readonly = "true"/></td>
							<td class="td_view_name">所在项目</td>
							<td class="td_view_value"><input
								class="easyui-validatebox" id="AddprojectName"
								name="projectName" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>
						<tr>
							<td class="td_view_name">项目类型</td>
							<td class="td_view_value"><input
								class="easyui-validatebox" id="AddproProducttype"
								name="proProducttype" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>		
							<td class="td_view_name">项目职务</td>
							<td class="td_view_value"><input
								class="easyui-validatebox" id="AddppProRoleDesc"
								name="ppProRoleDesc" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>								
						</tr>
						<tr>
							<td class="td_view_name">项目开始日期</td>
							<td class="td_view_value"><input
								class="easyui-datebox" id="Addbegintime"
								name="begintime" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>		
							<td class="td_view_name">项目结束日期</td>
							<td class="td_view_value"><input
								class="easyui-datebox" id="AddproEndtime"
								name="proEndtime" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>								
						</tr>

						<tr>							
							<td class="td_view_name">所在厂家</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddproFactory"
								name="proFactory"   readonly = "true"/></td>
							<td class="td_view_name">是否还在项目里</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddppStatus"
								name="ppStatus"  data-options="panelHeight:'auto',formatter:formatPrejectInStatus"
								 readonly = "true"/></td>
						</tr>
						<tr>	
							<td class="td_view_name">进入项目日期</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-datebox input_140" id="AddppInProTime"
								name="ppInProTime"   readonly = "true"/></td>	
							<td class="td_view_name">离开项目日期</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-datebox input_140" id="AddppOutProTime"
								name="ppOutProTime"   readonly = "true"/></td>
						</tr>
						<tr>							
							<td class="td_view_name">联系电话</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddpeoContel"
								name="peoContel" validType="peoContel"  readonly = "true"/></td>
							<td class="td_view_name">email</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="Addemail"
								name="email" validType="email"  readonly = "true"/></td>		
						</tr>
						<tr>							
							<td class="td_view_name">身份证号码</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AdduserIdentityCard"
								name="userIdentityCard"   readonly = "true"/></td>
							<td class="td_view_name">备注</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddpeoNote"
								name="peoNote"   readonly = "true"/></td>		
						</tr>
						<tr>							
							
						</tr>						
					</table>
				</form>
			</div>
			<div data-options="region:'south',border:false"
				style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-cancel'" href="javascript:void(0)"
					onclick="ViewWindowClose()" style="width:80px">关闭</a>
			</div>
		</div>
	</div>
	
	<!-- 增加人员信息 -->
	<div id="AddWindow" class="easyui-window" title="新增人员信息"
		data-options="collapsible:false,closable:false,minimizable:false,maximizable:false,modal:true,closed:true,iconCls:'icon-view'"
		style="width:700px;height:350px;padding:10px;">
		<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'center'" style="padding:10px;">
				<form id="query_form_Add" method="post">
					<table class="table_view"
						style="font-size: 12px; background: #F1F1F1;">
						<tr>
							
							<td class="td_view_name">员工编号</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddpeoJobNum" name="peoJobNum" required="true"/></td>
							<td class="td_view_name">姓名</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" data-options="editable:false"
								id="AddpeoName" name="peoName" required="true"/></td>
							
						</tr>
						
						<tr>
							<td class="td_view_name">性别</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AdduserSex"
								name="userSex" data-options="panelHeight:'auto'"
								editable="false" /></td>	
							<td class="td_view_name">岗位状态</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AddpeoStationDesc"
								name="peoStationDesc" data-options="panelHeight:'auto'"
								editable="false" /></td>		
													
						</tr>
						<tr>
							<td class="td_view_name">休假出差</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AddpeoEvectionDesc"
								name="peoEvectionDesc" data-options="panelHeight:'auto'"
								editable="false" /></td>
							<td class="td_view_name">出差位置</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text"
								id="AddpeoEvectionLocation" name="peoEvectionLocation" /></td>
							
								
						</tr>
						
						<tr>
							<td class="td_view_name">派遣项目</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AddprojectName"
								name="projectName" data-options="panelHeight:'auto'"
								editable="false" /></td>
							<td class="td_view_name">是否还在项目里</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AddppStatus"
								name="ppStatus" data-options="panelHeight:'auto'"
								editable="false" /></td>	
							
						</tr>
						<tr>	
							<td class="td_view_name">进入项目日期</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-datebox input_140" id="AddppInProTime"
								name="ppInProTime"   readonly = "true"/></td>	
							<td class="td_view_name">离开项目日期</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-datebox input_140" id="AddppOutProTime"
								name="ppOutProTime"   readonly = "true"/></td>
						</tr>
						<tr>
							
							<td class="td_view_name">联系电话</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddpeoContel"
								name="peoContel" validType="mobile" /></td>
							<td class="td_view_name">email</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="Addemail"
								name="email" validType="mobile" /></td>	
						</tr>
						
						<tr>
							
							<td class="td_view_name">身份证号码</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AdduserIdentityCard"
								name="userIdentityCard" validType="mobile" /></td>
							<td class="td_view_name">备注</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddpeoNote"
								name="peoNote" validType="mobile" /></td>	
						</tr>
						
					</table>
				</form>
			</div>
			<div data-options="region:'south',border:false"
				style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-ok'" href="javascript:void(0)"
					onclick="AddPeopleData()" style="width:80px">确认</a>
					<!-- onclick="AddPeopleData()" style="width:80px">确认</a> -->
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-cancel'" href="javascript:void(0)"
					onclick="AddWindowClose()" style="width:80px">取消</a>
			</div>
		</div>
	</div>

	<!-- 修改人员信息 -->
	<div id="EditWindow" class="easyui-window" title="修改人员信息"
		data-options="collapsible:false,closable:false,minimizable:false,maximizable:false,modal:true,closed:true,iconCls:'icon-view'"
		style="width:750px;height:460px;padding:10px;">
		<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'center'" style="padding:10px;">
				<form id="query_form_Edit" method="post">
					<table class="table_view"
						style="font-size: 12px; background: #F1F1F1;">
						<tr>
							
							<td class="td_view_name" hidden="true">序号</td>
							<td class="td_view_value" hidden="true"><input
								class="easyui-validatebox input_140" type="text" 
								id="AddpeoId" name="peoId"  readonly = "true"/></td>
							</tr>
						<tr>
<tr>
							
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>员工编号</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" 
								id="AddpeoJobNum" name="peoJobNum"  /></td>
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>姓名</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" 
								id="AddpeoName" name="peoName"  /></td>
							
						</tr>
						
						<tr>
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>性别</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AdduserSex"
								name="userSex" data-options="panelHeight:'auto'"
								 /></td>	
							<td class="td_view_name">角色</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text" 
								id="AddroleDesc" name="roleDesc"  readonly = "true" /></td>		
													
						</tr>
						<tr>
							<td class="td_view_name">岗位状态</td>
							<td class="td_view_value"><input
								class="easyui-validatebox" id="AddpeoStationDesc"
								name="peoStationDesc" data-options="panelHeight:'auto'"
								  /></td>
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>休假出差</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AddpeoEvectionDesc"
								name="peoEvectionDesc" data-options="panelHeight:'auto'"
								  /></td>								
						</tr>
						
						<tr>
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>出差位置</td>
							<td class="td_view_value"><input
								class="easyui-validatebox input_140" type="text"
								id="AddpeoEvectionLocation" name="peoEvectionLocation"  /></td>
							<td class="td_view_name">所在项目</td>
							<td class="td_view_value"><input
								class="easyui-combobox" id="AddprojectName"
								name="projectName" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>
						<tr>
							<td class="td_view_name">项目类型</td>
							<td class="td_view_value"><input
								class="easyui-validatebox" id="AddproProducttype"
								name="proProducttype" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>		
							<td class="td_view_name">项目职务</td>
							<td class="td_view_value"><input
								class="easyui-validatebox" id="AddppProRoleDesc"
								name="ppProRoleDesc" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>								
						</tr>
						<tr>
							<td class="td_view_name">项目开始日期</td>
							<td class="td_view_value"><input
								class="easyui-datebox" id="Addbegintime"
								name="begintime" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>		
							<td class="td_view_name">项目结束日期</td>
							<td class="td_view_value"><input
								class="easyui-datebox" id="AddproEndtime"
								name="proEndtime" data-options="panelHeight:'auto'"
								 readonly = "true" /></td>								
						</tr>

						<tr>							
							<td class="td_view_name">所在厂家</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddproFactory"
								name="proFactory"   readonly = "true"/></td>
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>是否还在项目里</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddppStatus"
								name="ppStatus"  data-options="panelHeight:'auto',formatter:formatPrejectInStatus"
								 /></td>
						</tr>
						<tr>	
							<td class="td_view_name">进入项目日期</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-datebox input_140" id="AddppInProTime"
								name="ppInProTime" /></td>	
							<td class="td_view_name">离开项目日期</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-datebox input_140" id="AddppOutProTime"
								name="ppOutProTime"  /></td>
						</tr>
						<tr>							
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>联系电话</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddpeoContel"
								name="peoContel" validType="peoContel"  /></td>
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>email</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="Addemail"
								name="email" validType="email"  /></td>		
						</tr>
						<tr>							
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>身份证号码</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AdduserIdentityCard"
								name="userIdentityCard"   /></td>
							<td class="td_view_name"><span style="color:red;font-weight:bold;">#</span>备注</td>
							<td class="td_view_value"><input  type="text"
								class="easyui-validatebox input_140" id="AddpeoNote"
								name="peoNote"  /></td>		
						</tr>
						<tr>							
							
						</tr>						
						
					</table>
				</form>
			</div>
			<div data-options="region:'south',border:false"
				style="text-align:right;padding:5px 0 0;">
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-ok'" href="javascript:void(0)"
					onclick="EditPeopleData()" style="width:80px">确认</a>
					<!-- onclick="AddPeopleData()" style="width:80px">确认</a> -->
					<a class="easyui-linkbutton"
					data-options="iconCls:'icon-cancel'" href="javascript:void(0)"
					onclick="EditWindowClose()" style="width:80px">取消</a>
			</div>
		</div>
	</div>
</body>
</html>